package com.dream.service.recommender.domain.enums;

/**
 * Created by xuzhijie on 2016/03/10.
 */
public enum ItemType {
    PRODUCT(1, "商品"),
    TOPIC(2, "专题"),
    DESIGNER(3, "设计师"),
    ShopifyProduct(4, "Shopify商品");

    int id;
    String explain;

    ItemType(int id, String explain) {
        this.id = id;
        this.explain = explain;
    }

    public int getCode() {
        return id;
    }

    public String toString() {
        return id + "->" + explain;
    }
}
